package dongshi.daddy.flyweight.concreteflyweight;

public enum Color {
    BLACK("黑色"), WHITE("白色");
    private String name;

    // 默认就是private的，并且不能反射，暴力也不行
    Color(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getAlias() {
        return this.name;
    }
}
